package com.qiang.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.omg.CORBA.PRIVATE_MEMBER;

import java.io.Serializable;
import java.util.Date;

/**
 * (User)实体类
 *
 * @author makejava
 * @since 2021-12-03 21:46:23
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private static final long serialVersionUID = 253702595580904523L;

    //字段  字段添加填充内容
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;//驼峰命名
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
//    @TableId(type = IdType.AUTO)

    @Version//乐观锁version注解
    private Integer version;

    @TableLogic//逻辑删除注解
    private Integer deleted;

    @TableId("id")
    private Long id;
    private String name;
    private Integer age;
    private String email;


}